<h1><?=$this->translate->_('header_be_user')?></h1>

<?if($this->count > 0):?>
	<?=$this->paginationControl($this->results, 'Sliding', 'pagination_control.phtml', array('route' => 'be_user_page'))?>
	<table summary="backend user" class="highMe" id="editableTable">
	<tr>
		<th width="10px"><?=$this->translate->_('user_table_uid')?></th>
		<th width="100px"><?=$this->translate->_('user_table_username')?></th>
		<th width="100px"><?=$this->translate->_('user_table_forename')?></th>
		<th width="100px"><?=$this->translate->_('user_table_lastname')?></th>
		<th width="150px"><?=$this->translate->_('user_table_homepage')?></th>
		<th width="100px"><?=$this->translate->_('user_table_mail')?></th>
		<th width="100px"><?=$this->translate->_('user_table_role')?></th>
		<th></th>
	</tr>
	<?foreach($this->results AS $result):?>
		<tr id="<?=$result['uid']?>">
			<td style="text-align:center;"><?=$result['uid']?></td>
			<td class="val_<?=$result['uid']?>" id="text,username"><?=$this->escape($result['username'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,forename"><?=$this->escape($result['forename'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,lastname"><?=$this->escape($result['lastname'])?></td>
			<td style="font-size:0.8em;" class="val_<?=$result['uid']?>" id="text,homepage"><?=$this->escape($result['homepage'])?></td>
			<td style="font-size:0.8em;" class="val_<?=$result['uid']?>" id="text,mail"><?=$this->escape($result['mail'])?></td>
			<td class="val_<?=$result['uid']?>" id="text,role"><?=$this->escape($result['role'])?></td>
			<td><a href="javascript:editRow(<?=$result['uid']?>,'<?=$this->url(array('module' => 'backend', 'controller' => 'user', 'action' => 'request'), 'default', true)?>');" id="editLink_<?=$result['uid']?>"><img src="<?=$this->baseUrl()?>/static/gfx/icons/pencil.png" /></a> <a href="<?=$this->url(array('module' => 'backend', 'controller' => 'user', 'action' => 'edit', 'uid' => $result['uid']), 'be_user_edit', true)?>"><img src="<?=$this->baseUrl()?>/static/gfx/icons/page_edit.png" /></a></td>
		</tr>
	<?endforeach;?>
	</table>
	<?=$this->paginationControl($this->results, 'Sliding', 'pagination_control.phtml', array('route' => 'be_user_page'))?>
<?else:?>
	<p class="notice_bad"><?=$this->translate->_('user_backend_empty')?></p>
<?endif;?>